<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    
    function Fn(m){
        this.msg = m;
    }
    Fn.prototype.show = function(){
        console.log(this.msg)
    }

    const f = new Fn("hello")
    console.log(f)
    console.log(f.msg)
    f.show();


    class Fun{
        constructor(m){
            this.msg = m;
        }
        show(){
            console.log(this.msg)
        }
    }
    const fu = new Fun("world")
    console.log(fu)
    console.log(fu.msg)
    fu.show();



</script>
</html>